using System;
using System.Collections.Generic;
using System.Text;

namespace GuavaData
{
    public class RenameColumn : Transform
    {
        Dictionary<string, string> list;
        
        public RenameColumn()
        {
            list = new Dictionary<string,string>();
        }

        public void add(string table, string column, string newColumn)
        {
            if (newColumn.Contains(" ")) throw new TransformException("New column name: " + newColumn + ", can not have spaces"); 
            list.Add(table + "~" + column, newColumn);
        }
        public RenameColumn(Dictionary<string,string> input) {
            list = input;
        }
    }
}
